<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
    <title>{:dingyi($c['name'],'全部分类')} - {:set('title')}</title>
    <meta name="keywords" content="{$c.keywords}">
    <meta name="description" content="{$c.description}">
    {include file="header"}
</head>
<body>
<section class="aui-flexView">
	<header class="aui-navBar aui-navBar-fixed animated slideInDown">
		<a href="/" class="aui-navBar-item left">
			<i class="iconfont">&#xe63a;</i>首页
		</a>
		<div class="aui-center">
			<div class="aui-search-box">
			    <form method="get" action="{if $hover==$m}{:url('index/model/soso',array('m'=>$m))}{else/}{:url('index/index/soso')}{/if}">
    				<i class="iconfont">&#xe619;</i>
    				<input type="text" name="ks" value="{:input('ks')}" placeholder="搜你想搜的">
    			</form>
			</div>
		</div>
		<a href="javascript:;" class="aui-navBar-item yemian" w="60%" tblr="l" h="100%" anim="0" css="menu">
			<i class="iconfont">&#xe640;</i>
		</a>
	</header>
	<section class="menu" style="display: none;">
        <ul class="fudong-nav">
            <li class="active item"> 
                <a href="{:url('index/model/index',array('model'=>$c.m))}"><i class="iconfont">&#xe618;</i>{:fun_model($c.m,'title')}<i class="iconfont" style="float: right;">&#xe600;</i></a>
            </li>
            {foreach name=":fun_S('cate_m',array('tid'=>0,'m'=>$c.m,'open'=>1,'header'=>1),'px desc','1000',1)" item="v" key="k"}
            <li class="active item {if $c.alias==$v.alias||$v.alias==fun_sc_p('cate', array('id'=>$c['tid']), 'alias')}info{/if}"> 
                <a href="{:url('index/model/cate',array('alias'=>$v.alias))}"><i class="iconfont">&#xe618;</i>{$v.name}<i class="iconfont" style="float: right;">&#xe600;</i></a>
                {if fun_st('cate',array('tid'=>$v['id']))}
                <div class="secondnac-box">
                    <ul class="second-nav"> 
                        {volist name=":fun_s('cate_m',array('tid'=>$v['id']),'px desc',100,1)" id="vo"}
                        <li class="on_nav {if $c.alias==$vo.alias}info{/if}"> 
                            <a href="{:url('index/model/cate',array('alias'=>$vo.alias))}" title="{$vo.name}"><i class="iconfont">&#xe6c0;</i>{$vo.name} <i class="iconfont" style="float: right;">&#xe600;</i></a>
                        </li>
                        {/volist}  
                    </ul>
                </div>
                {/if}
            </li>
            {/foreach}
        </ul>
	</section>
	<section class="aui-scrollView animated slideInLeft0">
        <div class="aui-flex">
			<div class="aui-flex-box">
				<h1>{:fun_model($c.m,'title')} > {$c['name']}</h1>
			</div>
		</div>
		<div class="aui-withe-box">
			<div class="dow">
                <ul class="ul">
                    {volist name=":fun_sd($c.m,array('f.open'=>1),$c['id'],'settop desc , times desc','15,false',0,'cate_m')" id="vo" empty="
                <div class='empty' align='center'>
                    <img src='/public/img/empty.png'/>
                    <p>没有更多的记录</p>
                </div>"}
                    <li class="item"> 
                        <a href="{:url('index/model/html',array('model'=>$vo.m,'id'=>$vo.id))}" target="_blank" class="img-box">
                            <img src="{$vo.pic}" alt="{$vo.title}" onerror="javascript:this.src='/favicon.ico';">
                        </a>
                        <div class="info"> 
                            <a href="{:url('index/model/html',array('model'=>$vo.m,'id'=>$vo.id))}" target="_blank" class="ab">{$vo.title}</a>
                            <p class="other"><i class="iconfont">&#xe614;</i>{$vo.view}</p>
                        </div>
                    </li>
                    {/volist}
                </ul>
            </div>
			<div class="aui-all">
				{:fun_sd($c.m,array('f.open'=>1),$c['id'],'settop desc , times desc','15,false',0,'cate_m')->render()}
			</div>
		</div>
	</section>
	{include file="footer"}
</section>
</body>
</html>
